package markgame2dphys;

import java.awt.Color;

import net.phys2d.raw.shapes.Box;

public class MarkGameBox extends MarkGameObject{

	public Box box = null;
	public final float width;
	public final float height;

	public MarkGameBox(float width, float height, float mass) {
		super(new Box(width, height), mass);
		this.width = width;
		this.height = height;
		box = (Box)body.getShape();
	}

	@Override
	public void paint(MarkGameGraphics g) {

		g.pushTransform();{

			g.rotate(body.getRotation(), body.getPosition());

			g.setColor(Color.BLACK);
			
			g.drawBox(body.getPosition(), width, height);

		}g.popTransform();
	}

}
